﻿namespace SqueezeboxLib
{
    /// <summary>
    /// Represents a <b>SqueezeboxCommand</b> for interacting with the Squeezebox CLI.
    /// </summary>
    public class SqueezeboxCommand
    {
        /// <summary>
        /// The unique identifier for the player, 
        /// usually (but not guaranteed to be) the MAC address of the player.
        /// </summary>
        public string PlayerID { get; private set; }

        /// <summary>
        /// The command or query name.
        /// </summary>
        public string Command { get; private set; }

        /// <summary>
        /// Creates a new instance of the <b>SqueezeboxCommand</b> class.
        /// </summary>
        /// <param name="playerID"></param>
        /// <param name="command"></param>
        public SqueezeboxCommand(string playerID, string command)
        {
            PlayerID = playerID;
            Command = command;
        }

        /// <summary>
        /// Returns the string representation of this <b>SqueezeboxCommand</b> 
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0} {1}", PlayerID, Command);
        }
    }
}
